/*
 * @Author: 陈永浩(cyh1231wp@163.com)
 * @Date: 2020-11-02 23:23:17
 * @LastEditors: 陈永浩(cyh1231wp@163.com)
 * @LastEditTime: 2021-02-21 09:57:45
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

// const routes = [

// ]

export const constantRoutes = [
  {
    path: '/401',
    name: '401',
    component: () => import('@/views/401'),
    hidden: true,
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/404'),
    hidden: true,
  },
  {
    path: '/',
    name: 'index',
    component: () => import('@/views/layouts/index'),
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/login'),
  },
  {
    path: '/select_app',
    name: 'select_app',
    component: () => import('@/views/selectApp/selectApp'),
  },
]

const router = new VueRouter({
  routes: constantRoutes
})

export default router
